Skip to content

Commit

Permalink
fix: Failing test
Browse files Browse the repository at this point in the history
- Emacs 29.1 complained about redefined test cases.
  - Using unique names across tests
- Correct args test

Signed-off-by: Sam Tavakoli <[email protected]>
  • Loading branch information
sata-form3 committed Mar 21, 2024
1 parent e6e2ea6 commit b388b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/gotest-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
:tags '(arguments)
(with-test-sandbox
(let ((go-test-args "-race"))
(should (string= (go-test-command " -race")
(should (string= (go-test-command "-race ")
(go-test--get-program (go-test--arguments "")))))))

(ert-deftest test-go-test-add-verbose-argument ()
Expand Down Expand Up @@ -191,15 +191,15 @@
(should (string= "ExampleA|ExampleB|ExampleC"
(go-test--get-current-file-testing-data))))))

(ert-deftest test-go-test-get-current-file-tests ()
(ert-deftest test-go-test-get-current-file-tests-contains-tests-examples ()
:tags '(find current)
(with-test-sandbox
(with-current-buffer
(find-file-noselect (concat go-test-testsuite-dir "/bar_test.go"))
(should (string= "TestFoo|TestBar|Test_Baz|ExampleA|ExampleB|ExampleC"
(go-test--get-current-file-testing-data))))))

(ert-deftest test-go-test-get-current-test ()
(ert-deftest test-go-test-get-current-test-contains-example ()
:tags '(find)
(with-test-sandbox
(with-current-buffer (find-file-noselect (concat go-test-testsuite-dir "/bar_test.go"))
Expand Down

0 comments on commit b388b7b

Please sign in to comment.