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