Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 31, 2023
1 parent 32050c5 commit 000f6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publisher/app/cmd/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestDeploy_Do(t *testing.T) {
assert.Equal(t, []string{"123"}, ex.RunCalls()[0].Params)
assert.Equal(t, `ssh [email protected] "cd /srv/site.hugo && git pull && docker-compose run --rm hugo"`, ex.RunCalls()[1].Cmd)
assert.Equal(t, 0, len(ex.RunCalls()[1].Params))
assert.Equal(t, `ssh [email protected] "docker exec -i super-bot /srv/telegram-rt-bot --super=umputun --super=bobuk --super=ksenks --super=grayru --dbg --export-num=%d --export-path=/srv/html"`, ex.RunCalls()[2].Cmd)
assert.Equal(t, `ssh [email protected] "docker exec -i super-bot /srv/telegram-rt-bot --super=umputun --super=bobuk --super=ksenks --super=grayodesa --dbg --export-num=%d --export-path=/srv/html"`, ex.RunCalls()[2].Cmd)
assert.Equal(t, []string{"123"}, ex.RunCalls()[2].Params)

}
Expand Down

0 comments on commit 000f6e0

Please sign in to comment.