Skip to content

Commit a21edde

Browse files
committed
clean up
1 parent d3a80f5 commit a21edde

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

tool/cmdwrapper/cmdwrapper_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ func TestExecuteAgentCommand_HappyPath(t *testing.T) {
9898

9999
// Test data
100100
command := "fetch-config"
101+
configValue := "config-value"
102+
modeValue := "mode-value"
101103
flags := map[string]*string{
102-
"config": stringPtr("config-value"),
103-
"mode": stringPtr("mode-value"),
104+
"config": &configValue,
105+
"mode": &modeValue,
104106
}
105107

106108
// Execute the function
@@ -135,8 +137,3 @@ func TestExecuteAgentCommand_HappyPath(t *testing.T) {
135137
}
136138
}
137139
}
138-
139-
// Helper function to create string pointer
140-
func stringPtr(s string) *string {
141-
return &s
142-
}

0 commit comments

Comments
 (0)