@@ -103,7 +103,7 @@ func TestDBFunctions(t *testing.T) {
103103
104104 t .Run ("InsertProject returns ErrAlreadyExists if the project already exists" , func (t * testing.T ) {
105105 err := store .InsertProject (ctx , projects [0 ])
106- assert .Equal (t , model .ErrAlreadyExists , err )
106+ assert .ErrorAs (t , err , & model.ErrAlreadyExists {} )
107107 })
108108
109109 t .Run ("GetDevProjectKeys returns keys in projects" , func (t * testing.T ) {
@@ -120,7 +120,7 @@ func TestDBFunctions(t *testing.T) {
120120 t .Run ("GetDevProject returns ErrNotFound for fake project keys" , func (t * testing.T ) {
121121 p , err := store .GetDevProject (ctx , "THIS-DOES-NOT-EXIST" )
122122 assert .Nil (t , p )
123- assert .ErrorIs (t , err , model .ErrNotFound )
123+ assert .ErrorAs (t , err , & model.ErrNotFound {} )
124124 })
125125
126126 t .Run ("GetDevProject returns project" , func (t * testing.T ) {
@@ -303,7 +303,7 @@ func TestDBFunctions(t *testing.T) {
303303
304304 t .Run ("DeactivateOverride returns error when override not found" , func (t * testing.T ) {
305305 _ , err := store .DeactivateOverride (ctx , projects [0 ].Key , "nope" )
306- assert .ErrorIs (t , err , model .ErrNotFound )
306+ assert .ErrorAs (t , err , & model.ErrNotFound {} )
307307 })
308308
309309 t .Run ("DeactivateOverride sets the override inactive and returns the current version" , func (t * testing.T ) {
0 commit comments