Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jun 24, 2019
1 parent 160c5f3 commit 9e344ae
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions dkron/job_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
package dkron

import (
"io/ioutil"
"os"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestJobGetParent(t *testing.T) {
dir, err := ioutil.TempDir("", "dkron-test")
require.NoError(t, err)
defer os.RemoveAll(dir)

s, err := NewStore(nil, dir)
defer s.Shutdown()
require.NoError(t, err)

a := &Agent{}
s, err := NewStore(a, "test")
if err != nil {
t.Fatal(err)
}
a.Store = s

parentTestJob := &Job{
Expand Down

0 comments on commit 9e344ae

Please sign in to comment.