Skip to content

Commit

Permalink
Update TestStateStore_EnsureService
Browse files Browse the repository at this point in the history
Test change reflects the desired behavior,
the index returned by the NodeServices query should match
the requested node's latest service update.
  • Loading branch information
wjordan committed Feb 18, 2022
1 parent bfa3ce0 commit 3cc8970
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/consul/state/catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,8 @@ func TestStateStore_EnsureService(t *testing.T) {
if err != nil {
t.Fatalf("err: %s", err)
}
if idx != 30 {
// Index matches the requested node's latest service update.
if idx != 20 {
t.Fatalf("bad index: %d", idx)
}

Expand Down

0 comments on commit 3cc8970

Please sign in to comment.