Skip to content

Commit

Permalink
Fix tests with extra parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 21, 2022
1 parent 6831034 commit 769a8e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/join_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Test_makeJoinServerExec(t *testing.T) {
}
for _, tc := range tests {
t.Run(tc.title, func(t *testing.T) {
got := makeJoinExec(tc.serverIP, tc.joinToken, tc.installStr, tc.k3sExtraArgs, tc.serverAgent)
got := makeJoinExec(tc.serverIP, tc.joinToken, tc.installStr, tc.k3sExtraArgs, tc.serverAgent, "")

if got != tc.installk3sExec {
t.Errorf("want: %s, got: %s", tc.installk3sExec, got)
Expand Down Expand Up @@ -72,7 +72,7 @@ func Test_makeJoinAgentExec(t *testing.T) {

for _, tc := range tests {
t.Run(tc.title, func(t *testing.T) {
got := makeJoinExec(tc.serverIP, tc.joinToken, tc.installStr, tc.k3sExtraArgs, tc.serverAgent)
got := makeJoinExec(tc.serverIP, tc.joinToken, tc.installStr, tc.k3sExtraArgs, tc.serverAgent, "")

if got != tc.installk3sExec {
t.Errorf("want: %s, got: %s", tc.installk3sExec, got)
Expand Down

0 comments on commit 769a8e8

Please sign in to comment.