From 797febca1b2c82f7383149a7a46713273eef1a9e Mon Sep 17 00:00:00 2001 From: stark-her3 <105930005+stark-her3@users.noreply.github.com> Date: Sun, 22 May 2022 14:27:52 +0530 Subject: [PATCH 1/2] Update mypipeline.yaml --- .harness/mypipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 979d17026274c1a919b53506c19bac2d6a45b37f Mon Sep 17 00:00:00 2001 From: stark-her3 <105930005+stark-her3@users.noreply.github.com> Date: Mon, 23 May 2022 09:56:57 +0530 Subject: [PATCH 2/2] Update hello_server_test.go --- hello_server_test.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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" {