Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Dec 24, 2024
1 parent 19d9ff1 commit be08577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/api/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package api_test

import (
"fmt"
"net/http"
"strings"
"testing"
Expand Down Expand Up @@ -289,7 +290,7 @@ func TestEndpointOptions(t *testing.T) {
{"/chequebook/address", []string{"GET"}, http.StatusNoContent},
{"/chequebook/deposit", []string{"POST"}, http.StatusNoContent},
{"/chequebook/withdraw", []string{"POST"}, http.StatusNoContent},
{"/wallet", []string{"GET"}, http.StatusNoContent},
{"/wallet", nil, http.StatusNotImplemented},
{"/wallet/withdraw/{coin}", nil, http.StatusNotImplemented},
{"/stamps", []string{"GET"}, http.StatusNoContent},
{"/stamps/{batch_id}", []string{"GET"}, http.StatusNoContent},
Expand Down Expand Up @@ -428,6 +429,7 @@ func TestEndpointOptions(t *testing.T) {

for _, expectedMethod := range tt.expectedMethods {
if !contains(actualMethods, expectedMethod) {
fmt.Println(actualMethods, expectedMethod)

Check failure on line 432 in pkg/api/router_test.go

View workflow job for this annotation

GitHub Actions / Lint

use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
t.Errorf("expected method %s not found for route %s", expectedMethod, tt.route)
}
}
Expand Down

0 comments on commit be08577

Please sign in to comment.