From edfade46c908d19150ac6ff3c289d44133db6113 Mon Sep 17 00:00:00 2001 From: mlycore Date: Mon, 27 Nov 2023 12:01:45 +0800 Subject: [PATCH] fix: fix test Signed-off-by: mlycore --- pitr/cli/internal/cmd/backup_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pitr/cli/internal/cmd/backup_test.go b/pitr/cli/internal/cmd/backup_test.go index ee72697a..8c7387ca 100644 --- a/pitr/cli/internal/cmd/backup_test.go +++ b/pitr/cli/internal/cmd/backup_test.go @@ -180,9 +180,9 @@ var _ = Describe("Backup", func() { as.EXPECT().Backup(gomock.Any()).Return("", xerr.NewCliErr("backup failed")) - Expect(_execBackup(as, bak.SsBackup.StorageNodes[0], dnCh)).ToNot(BeNil()) + Expect(_execBackup(as, bak.SsBackup.StorageNodes[1], dnCh)).ToNot(BeNil()) close(dnCh) - Expect(len(dnCh)).To(Equal(1)) + Expect(len(dnCh)).To(Equal(2)) }) })