mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 11:55:42 +03:00
nomad: fixing tests
This commit is contained in:
@@ -109,7 +109,7 @@ func TestAllocEndpoint_List_Blocking(t *testing.T) {
|
||||
alloc2.ID = alloc.ID
|
||||
alloc2.ClientStatus = structs.AllocClientStatusRunning
|
||||
time.AfterFunc(100*time.Millisecond, func() {
|
||||
if err := state.UpdateAllocFromClient(3, alloc2); err != nil {
|
||||
if err := state.UpdateAllocsFromClient(3, []*structs.Allocation{alloc2}); err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -755,7 +755,7 @@ func TestClientEndpoint_GetAllocs_Blocking(t *testing.T) {
|
||||
allocUpdate.NodeID = alloc.NodeID
|
||||
allocUpdate.ID = alloc.ID
|
||||
allocUpdate.ClientStatus = structs.AllocClientStatusRunning
|
||||
err := state.UpdateAllocFromClient(200, allocUpdate)
|
||||
err := state.UpdateAllocsFromClient(200, []*structs.Allocation{allocUpdate})
|
||||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user