Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Wang <[email protected]>
  • Loading branch information
Jun Wang committed Nov 21, 2024
1 parent dcb27b8 commit 7cb8366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/sync2/consolidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ func TestConsolidator(t *testing.T) {
}

orig, added := con.Create(sql)
count := con.Count(sql)
if !added {
t.Fatalf("expected consolidator to register a new entry")
}

if count != 0 {
t.Fatalf("expected to have %d wait", count)
}

if !reflect.DeepEqual(con.Items(), want) {
t.Fatalf("expected consolidator to still have no items")
}
Expand Down

0 comments on commit 7cb8366

Please sign in to comment.