Fix test to reflect new filename.

This commit is contained in:
Andrew Walsh 2023-11-26 23:40:20 -08:00
parent 90d6c1c39e
commit 85fe267c5d
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}

View file

@ -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()