Skip to content

Commit fec83a2

Browse files
committed
Fix lint issues
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 04b2965 commit fec83a2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pkg/epp/datastore/datastore_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,9 @@ func TestPods(t *testing.T) {
391391
pmf := backendmetrics.NewPodMetricsFactory(&backendmetrics.FakePodMetricsClient{}, time.Second)
392392
ds := NewDatastore(t.Context(), pmf, 0)
393393
fakeClient := fake.NewFakeClient()
394-
ds.PoolSet(ctx, fakeClient, inferencePool)
394+
if err := ds.PoolSet(ctx, fakeClient, inferencePool); err != nil {
395+
t.Error(err)
396+
}
395397
for _, pod := range test.existingPods {
396398
ds.PodUpdateOrAddIfNotExist(pod)
397399
}
@@ -573,7 +575,9 @@ func TestPodInfo(t *testing.T) {
573575
pmf := backendmetrics.NewPodMetricsFactory(&backendmetrics.FakePodMetricsClient{}, time.Second)
574576
ds := NewDatastore(t.Context(), pmf, 0)
575577
fakeClient := fake.NewFakeClient()
576-
ds.PoolSet(ctx, fakeClient, test.pool)
578+
if err := ds.PoolSet(ctx, fakeClient, test.pool); err != nil {
579+
t.Error(err)
580+
}
577581
for _, pod := range test.existingPods {
578582
ds.PodUpdateOrAddIfNotExist(pod)
579583
}

test/integration/epp/hermetic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ func TestFullDuplexStreamed_KubeInferenceObjectiveRequest(t *testing.T) {
984984
if len(test.wantMetrics) != 0 {
985985
for metricName, value := range test.wantMetrics {
986986
if err := metricsutils.GatherAndCompare(crmetrics.Registry, strings.NewReader(value), metricName); err != nil {
987-
t.Error(errors.New(fmt.Sprintf("In test %s, %v", test.name, err)))
987+
t.Error(fmt.Errorf("In test %s, %v", test.name, err))
988988
}
989989
}
990990
}

0 commit comments

Comments
 (0)