Skip to content

Commit

Permalink
fix: static check for redis strings e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: wangrushen <[email protected]>
  • Loading branch information
dovics committed Oct 27, 2024
1 parent b617e98 commit a50770f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,19 @@ func TestScaler(t *testing.T) {
// Create kubernetes resources for testing
CreateKubernetesResources(t, kc, testNamespace, data, templates)

testActivation(t, kc, data)
testScaleOut(t, kc, data)
testActivation(t, kc)
testScaleOut(t, kc)
testScaleIn(t, kc)
}

func testActivation(t *testing.T, kc *kubernetes.Clientset, data templateData) {
func testActivation(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing activation ---")
setKeyValue(t, 4)

AssertReplicaCountNotChangeDuringTimePeriod(t, kc, deploymentName, testNamespace, minReplicaCount, 60)
}

func testScaleOut(t *testing.T, kc *kubernetes.Clientset, data templateData) {
func testScaleOut(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing scale out ---")
setKeyValue(t, 10)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,19 @@ func TestScaler(t *testing.T) {
// Create kubernetes resources for testing
CreateKubernetesResources(t, kc, testNamespace, data, templates)

testActivation(t, kc, data)
testScaleOut(t, kc, data)
testActivation(t, kc)
testScaleOut(t, kc)
testScaleIn(t, kc)
}

func testActivation(t *testing.T, kc *kubernetes.Clientset, data templateData) {
func testActivation(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing activation ---")
setKeyValue(t, 4)

AssertReplicaCountNotChangeDuringTimePeriod(t, kc, deploymentName, testNamespace, minReplicaCount, 60)
}

func testScaleOut(t *testing.T, kc *kubernetes.Clientset, data templateData) {
func testScaleOut(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing scale out ---")
setKeyValue(t, 10)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ func TestScaler(t *testing.T) {
// Create kubernetes resources for testing
CreateKubernetesResources(t, kc, testNamespace, data, templates)

testActivation(t, kc, data)
testScaleOut(t, kc, data)
testActivation(t, kc)
testScaleOut(t, kc)
testScaleIn(t, kc)
}

func testActivation(t *testing.T, kc *kubernetes.Clientset, data templateData) {
func testActivation(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing activation ---")
setKeyValue(t, 4)

AssertReplicaCountNotChangeDuringTimePeriod(t, kc, deploymentName, testNamespace, minReplicaCount, 60)
}

func testScaleOut(t *testing.T, kc *kubernetes.Clientset, data templateData) {
func testScaleOut(t *testing.T, kc *kubernetes.Clientset) {
t.Log("--- testing scale out ---")
setKeyValue(t, 10)

Expand Down

0 comments on commit a50770f

Please sign in to comment.