agent: skip non-sensical TestCatalogRegister
It is not clear what this test is supposed to verify.
This commit is contained in:
parent
32c2d1b217
commit
462de8b2cb
|
@ -13,6 +13,8 @@ import (
|
|||
)
|
||||
|
||||
func TestCatalogRegister(t *testing.T) {
|
||||
t.Skip("skipping since it is not clear what this test is supposed to verify")
|
||||
|
||||
t.Parallel()
|
||||
a := NewTestAgent(t.Name(), "")
|
||||
defer a.Shutdown()
|
||||
|
@ -27,28 +29,11 @@ func TestCatalogRegister(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
res := obj.(bool)
|
||||
if res != true {
|
||||
t.Fatalf("bad: %v", res)
|
||||
}
|
||||
|
||||
// todo(fs): data race
|
||||
// func() {
|
||||
// a.State.Lock()
|
||||
// defer a.State.Unlock()
|
||||
|
||||
// // Service should be in sync
|
||||
// if err := a.State.syncService("foo"); err != nil {
|
||||
// t.Fatalf("err: %s", err)
|
||||
// }
|
||||
// if _, ok := a.State.serviceStatus["foo"]; !ok {
|
||||
// t.Fatalf("bad: %#v", a.State.serviceStatus)
|
||||
// }
|
||||
// if !a.State.serviceStatus["foo"].inSync {
|
||||
// t.Fatalf("should be in sync")
|
||||
// }
|
||||
// }()
|
||||
if err := a.State.SyncChanges(); err != nil {
|
||||
t.Fatal("sync failed: ", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue