Skip to content

Commit

Permalink
tskagent: update tests, again
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Oct 22, 2024
1 parent 6f23dfc commit 23f0a9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tskagent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func TestAgent(t *testing.T) {
})

t.Run("RemoveAll", func(t *testing.T) {
defer mustUpdate(t)
if err := ac.RemoveAll(); err != nil {
t.Errorf("RemoveAll: unexpected error: %v", err)
}
Expand All @@ -149,7 +150,6 @@ func TestAgent(t *testing.T) {
} else if len(lst) != 0 {
t.Errorf("List: got %+v, want empty", lst)
}
mustUpdate(t)
})

t.Run("RemoveMissing", func(t *testing.T) {
Expand All @@ -163,6 +163,7 @@ func TestAgent(t *testing.T) {
})

t.Run("RemovePresent", func(t *testing.T) {
defer mustUpdate(t)
if err := ac.Remove(pubKey); err != nil {
t.Errorf("Remove: unexpected error: %v", err)
}
Expand Down

0 comments on commit 23f0a9e

Please sign in to comment.