Fix S3 acceptance test panic, introduced in 1.7 encryption (#2420)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh 2025-01-24 09:59:43 -05:00 committed by GitHub
parent be72380cdb
commit 87cd9227dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1284,7 +1284,7 @@ func TestBackendExtraPaths(t *testing.T) {
} }
// Write the first state // Write the first state
stateMgr := &remote.State{Client: client} stateMgr := remote.NewState(client, encryption.StateEncryptionDisabled())
if err := stateMgr.WriteState(s1); err != nil { if err := stateMgr.WriteState(s1); err != nil {
t.Fatal(err) t.Fatal(err)
} }
@ -1296,7 +1296,7 @@ func TestBackendExtraPaths(t *testing.T) {
// Note a new state manager - otherwise, because these // Note a new state manager - otherwise, because these
// states are equal, the state will not Put to the remote // states are equal, the state will not Put to the remote
client.path = b.path("s2") client.path = b.path("s2")
stateMgr2 := &remote.State{Client: client} stateMgr2 := remote.NewState(client, encryption.StateEncryptionDisabled())
if err := stateMgr2.WriteState(s2); err != nil { if err := stateMgr2.WriteState(s2); err != nil {
t.Fatal(err) t.Fatal(err)
} }