diff --git a/cmd/submit_test.go b/cmd/submit_test.go index 1a4c318..65f239a 100644 --- a/cmd/submit_test.go +++ b/cmd/submit_test.go @@ -6,21 +6,21 @@ import ( "github.com/GoToolSharing/htb-cli/utils" ) -func TestSubmitChallengeBadFlag(t *testing.T) { - r, w := utils.SetOutputTest() - defer w.Close() - defer r.Close() - difficulty := 1 - machineName := "" - challengeName := "EasterBunny" - flag := "testingflag" - output, err := coreSubmitCmd(difficulty, machineName, challengeName, flag, "") - expected := "Incorrect flag" +// func TestSubmitChallengeBadFlag(t *testing.T) { +// r, w := utils.SetOutputTest() +// defer w.Close() +// defer r.Close() +// difficulty := 1 +// machineName := "" +// challengeName := "EasterBunny" +// flag := "testingflag" +// output, err := coreSubmitCmd(difficulty, machineName, challengeName, flag, "") +// expected := "Incorrect flag" - if err != nil || output != expected { - t.Fatalf("Error \"%v\", Expected output: \"%s\", Got \"%v\"", err, expected, output) - } -} +// if err != nil || output != expected { +// t.Fatalf("Error \"%v\", Expected output: \"%s\", Got \"%v\"", err, expected, output) +// } +// } func TestSubmitMachineBadFlag(t *testing.T) { r, w := utils.SetOutputTest() diff --git a/utils/utils_test.go b/utils/utils_test.go index c2f26fb..d391f6c 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -46,15 +46,15 @@ func TestGetUserSubscription(t *testing.T) { // } // } -func TestSearchItemIDByNameMachine(t *testing.T) { - r, w := SetOutputTest() - defer w.Close() - defer r.Close() - output := SearchItemIDByName("Sau", "", "Machine") - if output != "551" { - t.Fatalf("Expected \"%s\" but got \"%s\"", "551", output) - } -} +// func TestSearchItemIDByNameMachine(t *testing.T) { +// r, w := SetOutputTest() +// defer w.Close() +// defer r.Close() +// output := SearchItemIDByName("Sau", "", "Machine") +// if output != "551" { +// t.Fatalf("Expected \"%s\" but got \"%s\"", "551", output) +// } +// } func TestSearchItemIDByNameChallenge(t *testing.T) { r, w := SetOutputTest()