Skip to content

Commit

Permalink
fix errors.As sta18 test
Browse files Browse the repository at this point in the history
  • Loading branch information
shake551 committed Mar 6, 2023
1 parent 1f23331 commit ef84ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _test/sta18/sta18_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package sta18_test

import (
"context"
"errors"
"os"
"reflect"
"testing"

"github.com/TechBowl-japan/go-stations/db"
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestStation18(t *testing.T) {
return
}
default:
if !errors.As(err, &tc.WantError) {
if reflect.TypeOf(err) != reflect.TypeOf(tc.WantError) {
t.Errorf("期待していないエラーの型です, got = %+v, want = %+v", err, tc.WantError)
return
}
Expand Down

0 comments on commit ef84ffe

Please sign in to comment.