Skip to content

Commit

Permalink
Update update_test.go
Browse files Browse the repository at this point in the history
Removed addEntry
  • Loading branch information
miro-balaz authored and berkayoz committed Feb 21, 2024
1 parent 175d560 commit 79a9d2d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,6 @@ func addSameEntries(ctx context.Context, g Gomega, client *clientv3.Client, numE
}
}

func addEntry(ctx context.Context, g Gomega, client *clientv3.Client, key string, value string) {
resp, err := client.Txn(ctx).
If(clientv3.Compare(clientv3.ModRevision(key), "=", 0)).
Then(clientv3.OpPut(key, value)).
Commit()

g.Expect(err).To(BeNil())
g.Expect(resp.Succeeded).To(BeTrue())
}

func updateEntry(ctx context.Context, g Gomega, client *clientv3.Client, key string, value string) {

resp, err := client.Get(ctx, key, clientv3.WithRange(""))
Expand Down

0 comments on commit 79a9d2d

Please sign in to comment.