Skip to content

Commit

Permalink
use schema.Key.Name()
Browse files Browse the repository at this point in the history
Signed-off-by: Cenk Alti <[email protected]>
  • Loading branch information
cenkalti committed Jan 25, 2024
1 parent b852913 commit ae4b331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etcdutl/snapshot/v3_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"go.etcd.io/etcd/server/v3/embed"
"go.etcd.io/etcd/server/v3/etcdserver"
"go.etcd.io/etcd/server/v3/storage/mvcc"
"go.etcd.io/etcd/server/v3/storage/schema"
)

// TestSnapshotStatus is the happy case.
Expand Down Expand Up @@ -78,7 +79,7 @@ func TestSnapshotStatusNegativeRevisionMain(t *testing.T) {
defer db.Close()

err = db.Update(func(tx *bbolt.Tx) error {
b := tx.Bucket([]byte("key"))
b := tx.Bucket(schema.Key.Name())
if b == nil {
return errors.New("key bucket not found")
}
Expand Down

0 comments on commit ae4b331

Please sign in to comment.