Skip to content

Commit

Permalink
Add some more assertions in kubernetes_integration_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitarvdimitrov committed Dec 3, 2021
1 parent dc77595 commit fabeae0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kv/kubernetes/kubernetes_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ func Test_Integration(t *testing.T) {
return
}))

require.NoError(t, c.CAS(context.Background(), "/test", func(old interface{}) (out interface{}, retry bool, err error) {
assert.Equal(t, "test", old)
out = nil
retry = false
return
}))

keys, err = c.List(context.TODO(), "/test")
require.NoError(t, err)
assert.ElementsMatch(t, []string{"/test"}, keys)
Expand Down

0 comments on commit fabeae0

Please sign in to comment.