Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekdwivedi3060 committed Feb 27, 2024
1 parent 1fff7d5 commit 3029f22
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/k8snode_block_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
wrongImage = "wrong-image"
)

var _ = Describe(
var _ = FDescribe(
"K8sNodeBlockList", func() {
ctx := context.TODO()
Context(
Expand Down
18 changes: 10 additions & 8 deletions test/large_reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var _ = Describe(
}
aeroCluster.Spec.AerospikeNetworkPolicy = networkPolicy

It(
FIt(
"Should try large reconcile operations", func() {

By("Deploy and load data")
Expand Down Expand Up @@ -111,14 +111,16 @@ var _ = Describe(
Expect(err).ToNot(HaveOccurred())

// Change config back to original value
aeroCluster, err = getCluster(
k8sClient, ctx, clusterNamespacedName,
)
Expect(err).ToNot(HaveOccurred())
Eventually(func() error {
aeroCluster, err = getCluster(
k8sClient, ctx, clusterNamespacedName,
)
Expect(err).ToNot(HaveOccurred())

aeroCluster.Spec.AerospikeConfig.Value["service"].(map[string]interface{})["proto-fd-max"] = defaultProtofdmax
err = k8sClient.Update(goctx.TODO(), aeroCluster)
Expect(err).ToNot(HaveOccurred())
aeroCluster.Spec.AerospikeConfig.Value["service"].(map[string]interface{})["proto-fd-max"] = defaultProtofdmax

return k8sClient.Update(goctx.TODO(), aeroCluster)
}, 1*time.Minute).ShouldNot(HaveOccurred())

// Cluster status should never get updated with old conf "tempConf"
err = waitForClusterRollingRestart(
Expand Down
2 changes: 2 additions & 0 deletions test/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ func isClusterStateValid(

if !reflect.DeepEqual(statusToSpec, &newCluster.Spec) {
pkgLog.Info("Cluster status is not matching the spec")
pkgLog.Info(fmt.Sprintf("statusToSpec: %+v", statusToSpec))
pkgLog.Info(fmt.Sprintf("newCluster.Spec: %+v", newCluster.Spec))
return false

Check failure on line 298 in test/utils.go

View workflow job for this annotation

GitHub Actions / lint

return statements should not be cuddled if block has more than two lines (wsl)
}

Expand Down

0 comments on commit 3029f22

Please sign in to comment.