Fix tests and linting (#370)

* Fix license integration test
* Fix build tags in lint config
* Fix missing error checks
* Fix use of MarkNodeAsInitialized
* Fix attestation tests
* Add license integration test to cmake list
This commit is contained in:
Paul Meyer 2022-08-17 13:50:43 +02:00 committed by GitHub
parent 397c9013ea
commit 0969ff4ac3
9 changed files with 28 additions and 21 deletions

View file

@ -3,6 +3,7 @@
package license
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
@ -11,7 +12,7 @@ import (
func TestCheckQuotaIntegration(t *testing.T) {
testCases := map[string]struct {
license string
action string
action Action
wantQuota int
wantError bool
}{
@ -48,10 +49,11 @@ func TestCheckQuotaIntegration(t *testing.T) {
client := NewClient()
resp, err := client.CheckQuota(CheckQuotaRequest{
req := CheckQuotaRequest{
Action: tc.action,
License: tc.license,
})
}
resp, err := client.CheckQuota(context.Background(), req)
if tc.wantError {
assert.Error(err)