From e24c6813a70fcb09f5bdd7ea8b6a503cacdb0e98 Mon Sep 17 00:00:00 2001 From: FedorovVladimir Date: Sat, 18 Mar 2023 14:36:41 +0700 Subject: [PATCH] fix --- .drone.yml | 1 + calories/calories_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 4e5685c..5aebeb8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,7 @@ steps: - name: build image: golang commands: + - go test - go build -o valera_tg_bot main.go - name: scp diff --git a/calories/calories_test.go b/calories/calories_test.go index 39573c0..28e326e 100644 --- a/calories/calories_test.go +++ b/calories/calories_test.go @@ -40,7 +40,7 @@ func TestCalcCalories(t *testing.T) { tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel() - count, err := calcCalories(tt.text) + count, err := CalcCalories(tt.text) if (err != nil) != tt.wantErr { t.Errorf("error calc calories: %v", err) return