Fixed app and connection tests.

The tests was not updated.
This commit is contained in:
claudemiro
2015-01-13 13:29:52 -03:00
parent 59457cc734
commit 0e3440bc35
3 changed files with 42 additions and 36 deletions
+4 -6
View File
@@ -4,14 +4,12 @@
package main
import (
"testing"
)
import "testing"
func Test_New_ID(t *testing.T) {
id := newID()
_, id := newID()
if newID() != id+1 {
t.Error("Every call to newID must increment the id by one")
if _, i := newID(); i != id+1 {
t.Errorf("Every call to newID must increment the id by one, got: %s", i)
}
}