Skip to content

Commit

Permalink
format tests
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 18, 2024
1 parent 01a87bb commit aa20df3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/runner/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Test_templaterApply(t *testing.T) {
{
name: "all variables, hostAddr without port",
inp: "${SPOT_REMOTE_HOST} ${SPOT_REMOTE_USER} ${SPOT_COMMAND} {SPOT_REMOTE_NAME} " +
"{SPOT_REMOTE_ADDR} {SPOT_REMOTE_PORT}",
"{SPOT_REMOTE_ADDR} {SPOT_REMOTE_PORT}",
tmpl: templater{
hostAddr: "example.com",
hostName: "example",
Expand All @@ -42,7 +42,7 @@ func Test_templaterApply(t *testing.T) {
{
name: "all variables, hostAddr with port",
inp: "${SPOT_REMOTE_HOST} ${SPOT_REMOTE_USER} ${SPOT_COMMAND} {SPOT_REMOTE_NAME} " +
"{SPOT_REMOTE_ADDR} {SPOT_REMOTE_PORT}",
"{SPOT_REMOTE_ADDR} {SPOT_REMOTE_PORT}",
tmpl: templater{
hostAddr: "example.com:22022",
hostName: "example",
Expand All @@ -54,7 +54,7 @@ func Test_templaterApply(t *testing.T) {
{
name: "all variables, hostAddr ipv6 with port",
inp: "${SPOT_REMOTE_HOST} ${SPOT_REMOTE_USER} ${SPOT_COMMAND} {SPOT_REMOTE_NAME} " +
"{SPOT_REMOTE_ADDR} {SPOT_REMOTE_PORT}",
"{SPOT_REMOTE_ADDR} {SPOT_REMOTE_PORT}",
tmpl: templater{
hostAddr: "[2001:db8::1]:22022",
hostName: "example",
Expand Down

0 comments on commit aa20df3

Please sign in to comment.