Skip to content

Commit 49c3b45

Browse files
committed
nit: set the name with strings.Repeat(a, 48)
Signed-off-by: win5923 <[email protected]>
1 parent ecae937 commit 49c3b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ray-operator/test/e2erayservice/rayservice_validation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package e2erayservice
22

33
import (
4+
"strings"
45
"testing"
56

67
. "github.com/onsi/gomega"
@@ -17,10 +18,9 @@ func TestRayServiceValidation(t *testing.T) {
1718

1819
// Create a namespace
1920
namespace := test.NewTestNamespace()
20-
rayServiceName := "rayservice-sample-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
2121

2222
test.T().Run("RayService name too long with 48 characters", func(_ *testing.T) {
23-
rayServiceAC := rayv1ac.RayService(rayServiceName, namespace.Name).
23+
rayServiceAC := rayv1ac.RayService(strings.Repeat("a", 48), namespace.Name).
2424
WithSpec(RayServiceSampleYamlApplyConfiguration())
2525

2626
rayService, err := test.Client().Ray().RayV1().RayServices(namespace.Name).Apply(test.Ctx(), rayServiceAC, TestApplyOptions)

0 commit comments

Comments
 (0)