mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +00:00
fix tests
This commit is contained in:
parent
ef3f3ff18b
commit
ccba530255
1 changed files with 2 additions and 4 deletions
|
@ -4,7 +4,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"errors"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@ -106,9 +105,8 @@ func TestPostgresDevice_Update(t *testing.T) {
|
||||||
fn func(*domain.Device)
|
fn func(*domain.Device)
|
||||||
err error
|
err error
|
||||||
}{
|
}{
|
||||||
"valid update": {func(dev *domain.Device) { dev.Sandbox = true }, nil},
|
"valid update": {func(dev *domain.Device) { dev.Sandbox = true }, nil},
|
||||||
"empty update": {func(dev *domain.Device) {}, nil},
|
"empty update": {func(dev *domain.Device) {}, nil},
|
||||||
"update on non existant id": {func(dev *domain.Device) { dev.ID = 0 }, errors.New("weird behaviour, total rows affected: 0")},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for scenario, tc := range testCases { //nolint:paralleltest
|
for scenario, tc := range testCases { //nolint:paralleltest
|
||||||
|
|
Loading…
Reference in a new issue