Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
Signed-off-by: mlycore <[email protected]>
  • Loading branch information
mlycore committed Nov 27, 2023
1 parent 2678604 commit edfade4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pitr/cli/internal/cmd/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

})
})
Expand Down

0 comments on commit edfade4

Please sign in to comment.