From 823786c3ea11830456f7eb2a9da4f3610f6f1518 Mon Sep 17 00:00:00 2001 From: FedorovVladimir Date: Sat, 18 Mar 2023 14:47:45 +0700 Subject: [PATCH] fix test step --- .drone.yml | 2 +- calories/calories_test.go | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index bd0bec4..f7f8117 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - name: test image: golang commands: - - go test + - go test ./... - name: scp image: appleboy/drone-scp diff --git a/calories/calories_test.go b/calories/calories_test.go index 28e326e..45631cd 100644 --- a/calories/calories_test.go +++ b/calories/calories_test.go @@ -1,6 +1,9 @@ package calories -import "testing" +import ( + "fmt" + "testing" +) func TestCalcCalories(t *testing.T) { t.Parallel() @@ -31,7 +34,7 @@ func TestCalcCalories(t *testing.T) { { "чай text", "чай", - 39, + 79, false, }, } @@ -46,6 +49,7 @@ func TestCalcCalories(t *testing.T) { return } if count != tt.want { + fmt.Println(count, tt.want) t.Errorf("error count: %v", err) return }