Skip to content

Commit

Permalink
pkg: create shorter project name
Browse files Browse the repository at this point in the history
Change-Id: I6c4788bc9fe7de2ae6c7afb85da112ae0a39f996
  • Loading branch information
egonelbre committed May 7, 2024
1 parent 14f3d40 commit 0605f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (ce *ConsoleEndpoint) getHttpProject(ctx context.Context) (string, string,

func (ce *ConsoleEndpoint) createHttpProject(ctx context.Context) (string, string, error) {
rng := rand.NewSource(time.Now().UnixNano())
body := fmt.Sprintf(`{"name":"TestProject-%d","description":""}`, rng.Int63())
body := fmt.Sprintf(`{"name":"P%d","description":""}`, rng.Int63())

var createdProject struct {
ID string `json:"id"`
Expand Down Expand Up @@ -316,7 +316,7 @@ func (ce *ConsoleEndpoint) getGraphqlProject(ctx context.Context) (string, strin
func (ce *ConsoleEndpoint) createGraphqlProject(ctx context.Context) (string, string, error) {
rng := rand.NewSource(time.Now().UnixNano())
createProjectQuery := fmt.Sprintf(
`mutation {createProject(input:{name:"TestProject-%d",description:""}){id}}`,
`mutation {createProject(input:{name:"P%d",description:""}){id}}`,
rng.Int63())

var createProject struct {
Expand Down

0 comments on commit 0605f86

Please sign in to comment.