From 85fe267c5d6b6625b802be46674746bd6b6d91a5 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 26 Nov 2023 23:40:20 -0800 Subject: [PATCH] Fix test to reflect new filename. --- src/cmd/apt_query/main.go | 2 +- src/cmd/apt_query/main_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/apt_query/main.go b/src/cmd/apt_query/main.go index ab9056c..f0eaab3 100644 --- a/src/cmd/apt_query/main.go +++ b/src/cmd/apt_query/main.go @@ -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 ") + fmt.Println("Usage: apt_query normalized-list ") os.Exit(1) } diff --git a/src/cmd/apt_query/main_test.go b/src/cmd/apt_query/main_test.go index a8d79bd..1855e6d 100644 --- a/src/cmd/apt_query/main_test.go +++ b/src/cmd/apt_query/main_test.go @@ -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()