Skip to content

Commit 2645aa9

Browse files
committed
Fix a few little mistakes in datahubs test
1 parent 35383b2 commit 2645aa9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/gather/clusterconfig/sap_datahubs_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ metadata:
2323
datahubYAML2 := `apiVersion: installers.datahub.sap.com/v1alpha1
2424
kind: DataHub
2525
metadata:
26-
name: example-datahub
27-
namespace: example-namespace2
26+
name: example-datahub
27+
namespace: example-namespace2
2828
`
2929

3030
datahubsResource := schema.GroupVersionResource{Group: "installers.datahub.sap.com", Version: "v1alpha1", Resource: "datahubs"}
@@ -41,7 +41,7 @@ metadata:
4141

4242
decUnstructured2 := yaml.NewDecodingSerializer(unstructured.UnstructuredJSONScheme)
4343
testDatahub2 := &unstructured.Unstructured{}
44-
_, _, err := decUnstructured2.Decode([]byte(datahubYAML2), nil, testDatahub2)
44+
_, _, err = decUnstructured2.Decode([]byte(datahubYAML2), nil, testDatahub2)
4545
if err != nil {
4646
t.Fatal("unable to decode datahub YAML", err)
4747
}
@@ -75,7 +75,7 @@ metadata:
7575
t.Fatalf("unexpected errors: %#v", errs)
7676
}
7777
// 2 record because there are now two datahubs resources.
78-
if len(records) != 1 {
78+
if len(records) != 2 {
7979
t.Fatalf("unexpected number or records in the second run: %d", len(records))
8080
}
8181
}

0 commit comments

Comments
 (0)