From d90efd7704e1ac7ad3ed225c87779d6666553d3d Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 9 Aug 2021 10:30:10 +0200 Subject: [PATCH] Fix test --- cmd/restic/integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/integration_test.go b/cmd/restic/integration_test.go index b901287a8..463ea0d39 100644 --- a/cmd/restic/integration_test.go +++ b/cmd/restic/integration_test.go @@ -1089,7 +1089,7 @@ type emptySaveBackend struct { } func (b *emptySaveBackend) Save(ctx context.Context, h restic.Handle, rd restic.RewindReader) error { - return b.Backend.Save(ctx, h, restic.NewByteReader(make([]byte, 0))) + return b.Backend.Save(ctx, h, restic.NewByteReader([]byte{}, nil)) } func TestKeyProblems(t *testing.T) {