From 21be1710f02f2a9ebc33fabc61262b07806c1004 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Thu, 30 Nov 2023 10:11:11 +0100 Subject: [PATCH] stores: fix TestDeleteHostSector --- stores/metadata_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stores/metadata_test.go b/stores/metadata_test.go index 5c8d74220..2f2d025ce 100644 --- a/stores/metadata_test.go +++ b/stores/metadata_test.go @@ -3474,10 +3474,11 @@ func TestDeleteHostSector(t *testing.T) { } // create a healthy slab with one sector that is uploaded to all contracts. + key, _ := object.GenerateEncryptionKey().MarshalBinary() root := types.Hash256{1, 2, 3} slab := dbSlab{ DBContractSetID: 1, - Key: []byte(object.GenerateEncryptionKey().String()), + Key: key, Health: 1.0, HealthValidUntil: time.Now().Add(time.Hour).Unix(), TotalShards: 1,