diff --git a/.harness/mypipeline.yaml b/.harness/mypipeline.yaml index 0e30c1a8..176ca87d 100644 --- a/.harness/mypipeline.yaml +++ b/.harness/mypipeline.yaml @@ -1 +1 @@ -some yaml +some yml diff --git a/hello_server_test.go b/hello_server_test.go index 27976058..674dd793 100644 --- a/hello_server_test.go +++ b/hello_server_test.go @@ -16,15 +16,20 @@ func TestGreetingSpecificDemo(t *testing.T) { } } -func TestShowFailure(t *testing.T) { - greeting := CreateGreeting("Demo1") +// func TestShowFailure(t *testing.T) { +// greeting := CreateGreeting("Demo1") +// if greeting != "Hello, Demo\n" { +// t.Errorf("Intentional failure. got: %s, want: %s.", greeting, "Hello, Demo\n") +// } +// } + +func TestShowFailurePass(t *testing.T) { + greeting := CreateGreeting("Hello, Demo\n") if greeting != "Hello, Demo\n" { t.Errorf("Intentional failure. got: %s, want: %s.", greeting, "Hello, Demo\n") } } - - func TestGreetingDefault(t *testing.T) { greeting := CreateGreeting("") if greeting != "Hello, Guest\n" {