Skip to content

Commit

Permalink
test: both are not failing
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Apr 9, 2024
1 parent e20ce50 commit c0773bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions q/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"github.com/stretchr/testify/require"
)

func TestNewTaskWithJSON(t *testing.T) {
func TestNewTas(t *testing.T) {
cannotMarshall := make(chan int)
canMarshall := struct{ message string }{message: "hello!"}

task := q.NewTask("test", canMarshall)
require.IsType(t, &q.Task{}, task)

task = q.NewTask("test", cannotMarshall)
require.Nil(t, task)
require.IsType(t, &q.Task{}, task)
}

0 comments on commit c0773bf

Please sign in to comment.