Skip to content

Commit

Permalink
Fix test to reflect new filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
awalsh128 committed Nov 27, 2023
1 parent 90d6c1c commit 85fe267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/apt_query/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func contains(arr []string, element string) bool {
// Writes a message to STDERR and exits with status 1.
func exitOnError(format string, arg ...any) {
fmt.Fprintln(os.Stderr, fmt.Errorf(format+"\n", arg...))
fmt.Println("Usage: apt_query.go normalized-list <package names>")
fmt.Println("Usage: apt_query normalized-list <package names>")
os.Exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/apt_query/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type RunResult struct {
func run(t *testing.T, command string, pkgNames ...string) RunResult {
stdout := &bytes.Buffer{}
stderr := &bytes.Buffer{}
cmd := exec.Command("go", append([]string{"run", "apt_query.go", command}, pkgNames...)...)
cmd := exec.Command("go", append([]string{"run", "main.go", command}, pkgNames...)...)
cmd.Stdout = stdout
cmd.Stderr = stderr
err := cmd.Run()
Expand Down

0 comments on commit 85fe267

Please sign in to comment.