From ae4b331cbb8ccb398acd19a6e13732446652f8a2 Mon Sep 17 00:00:00 2001 From: Cenk Alti Date: Thu, 25 Jan 2024 14:47:56 -0500 Subject: [PATCH] use schema.Key.Name() Signed-off-by: Cenk Alti --- etcdutl/snapshot/v3_snapshot_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etcdutl/snapshot/v3_snapshot_test.go b/etcdutl/snapshot/v3_snapshot_test.go index bea8d4f1e96a..04310f3a2ce7 100644 --- a/etcdutl/snapshot/v3_snapshot_test.go +++ b/etcdutl/snapshot/v3_snapshot_test.go @@ -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. @@ -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") }