mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
fix: golangci-lint test assertion and gofmt
This commit is contained in:
1 parent
6af5b9ff9c
commit
327a4fb248
2 files changed
+17
-17
No files matched your search
@@ -493,7 +493,7 @@ func TestValidatePricingBillingMode(t *testing.T) {
|
||||
err := validatePricingBillingMode(tt.pricing)
|
||||
if tt.wantErr {
|
||||
require.Error(t, err)
|
||||
require.Contains(t, err.Error(), "Per-request price or intervals required")
|
||||
require.Contains(t, err.Error(), "per-request price or intervals required")
|
||||
} else {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user