fix lint errors

This commit is contained in:
LexLuthr 2022-08-04 00:22:24 +05:30
parent c962fe9011
commit 23bb80ab2c

View File

@ -3,12 +3,12 @@ package itests
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"github.com/google/uuid"
"strings" "strings"
"sync/atomic" "sync/atomic"
"testing" "testing"
"time" "time"
"github.com/google/uuid"
logging "github.com/ipfs/go-log/v2" logging "github.com/ipfs/go-log/v2"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"golang.org/x/xerrors" "golang.org/x/xerrors"
@ -460,6 +460,7 @@ func TestSchedulerRemoveRequest(t *testing.T) {
} }
j, err := json.MarshalIndent(&schedb, "", " ") j, err := json.MarshalIndent(&schedb, "", " ")
require.NoError(t, err)
var b info var b info
err = json.Unmarshal(j, &b) err = json.Unmarshal(j, &b)
@ -487,6 +488,7 @@ func TestSchedulerRemoveRequest(t *testing.T) {
} }
k, err := json.MarshalIndent(&scheda, "", " ") k, err := json.MarshalIndent(&scheda, "", " ")
require.NoError(t, err)
var a info var a info
err = json.Unmarshal(k, &a) err = json.Unmarshal(k, &a)