Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Nov 1, 2024
1 parent 3590440 commit 6f162d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/agent_remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ var _ = Describe("agent remote", func() {

cc := testExecutor.ClusterCommands[0]
errorFile0 := fmt.Sprintf(`/data/gpseg0/gpbackup_0_11112233445566_pipe_%d_error`, fpInfo.PID)
expectedCmd0 := fmt.Sprintf(`if [[ -f %[1]s ]]; then echo 'error'; fi; rm -f %[1]s`, errorFile0)
expectedCmd0 := fmt.Sprintf(`if [[ -f %[1]s ]]; then echo 'error'; fi;`, errorFile0)
Expect(cc[0].CommandString).To(ContainSubstring(expectedCmd0))

errorFile1 := fmt.Sprintf(`/data/gpseg1/gpbackup_1_11112233445566_pipe_%d_error`, fpInfo.PID)
expectedCmd1 := fmt.Sprintf(`if [[ -f %[1]s ]]; then echo 'error'; fi; rm -f %[1]s`, errorFile1)
expectedCmd1 := fmt.Sprintf(`if [[ -f %[1]s ]]; then echo 'error'; fi;`, errorFile1)
Expect(cc[1].CommandString).To(ContainSubstring(expectedCmd1))
})

Expand Down

0 comments on commit 6f162d4

Please sign in to comment.