diff --git a/audiofilelibrary/audiofilelibrary.go b/audiofilelibrary/audiofilelibrary.go index 1aef7be..81c5290 100644 --- a/audiofilelibrary/audiofilelibrary.go +++ b/audiofilelibrary/audiofilelibrary.go @@ -26,7 +26,7 @@ import ( "strconv" "strings" - "github.com/TheCacophonyProject/audiobait/playlist" + "github.com/TheCacophonyProject/audiobait/v3/playlist" ) // AudioFileLibrary is a structure to hold info on the files in the audio directory. diff --git a/cmd/audiobait/downloader.go b/cmd/audiobait/downloader.go index 2920b83..3182929 100644 --- a/cmd/audiobait/downloader.go +++ b/cmd/audiobait/downloader.go @@ -27,8 +27,8 @@ import ( "path/filepath" "time" - "github.com/TheCacophonyProject/audiobait/audiofilelibrary" - "github.com/TheCacophonyProject/audiobait/playlist" + "github.com/TheCacophonyProject/audiobait/v3/audiofilelibrary" + "github.com/TheCacophonyProject/audiobait/v3/playlist" "github.com/TheCacophonyProject/go-api" "github.com/TheCacophonyProject/modemd/connrequester" ) diff --git a/cmd/audiobait/main.go b/cmd/audiobait/main.go index e8a2c80..d624030 100644 --- a/cmd/audiobait/main.go +++ b/cmd/audiobait/main.go @@ -27,8 +27,8 @@ import ( arg "github.com/alexflint/go-arg" - "github.com/TheCacophonyProject/audiobait/audiofilelibrary" - "github.com/TheCacophonyProject/audiobait/playlist" + "github.com/TheCacophonyProject/audiobait/v3/audiofilelibrary" + "github.com/TheCacophonyProject/audiobait/v3/playlist" goconfig "github.com/TheCacophonyProject/go-config" ) diff --git a/cmd/audiobait/player.go b/cmd/audiobait/player.go index eb9c91b..064edfb 100644 --- a/cmd/audiobait/player.go +++ b/cmd/audiobait/player.go @@ -24,7 +24,7 @@ import ( "os/exec" "time" - "github.com/TheCacophonyProject/audiobait/audiofilelibrary" + "github.com/TheCacophonyProject/audiobait/v3/audiofilelibrary" "github.com/TheCacophonyProject/event-reporter/eventclient" ) diff --git a/cmd/audiobait/player_test.go b/cmd/audiobait/player_test.go index 612f468..ed0caee 100644 --- a/cmd/audiobait/player_test.go +++ b/cmd/audiobait/player_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/TheCacophonyProject/audiobait/audiofilelibrary" + "github.com/TheCacophonyProject/audiobait/v3/audiofilelibrary" "github.com/TheCacophonyProject/event-reporter/eventclient" "github.com/stretchr/testify/assert" ) diff --git a/go.mod b/go.mod index 80a9303..7098e0b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/TheCacophonyProject/audiobait +module github.com/TheCacophonyProject/audiobait/v3 go 1.12 diff --git a/playlist/player.go b/playlist/player.go index 86df1ab..5608853 100644 --- a/playlist/player.go +++ b/playlist/player.go @@ -22,7 +22,7 @@ import ( "log" "time" - "github.com/TheCacophonyProject/audiobait/audiobaitclient" + "github.com/TheCacophonyProject/audiobait/v3/audiobaitclient" "github.com/TheCacophonyProject/event-reporter/eventclient" "github.com/TheCacophonyProject/window" ) diff --git a/playlist/schedule_test.go b/playlist/schedule_test.go index 24267b2..f120c83 100644 --- a/playlist/schedule_test.go +++ b/playlist/schedule_test.go @@ -19,6 +19,7 @@ along with this program. If not, see . package playlist import ( + "sort" "testing" "github.com/stretchr/testify/assert" @@ -114,5 +115,9 @@ func TestGetReferenceSounds(t *testing.T) { }, AllSounds: []int{1, 2, 3, 212, 215}, } - assert.Equal(t, []int{212, 215}, scheduleNoRandom.GetReferencedSounds()) + expected := []int{215, 212} + actual := scheduleNoRandom.GetReferencedSounds() + sort.Ints(expected) + sort.Ints(actual) + assert.Equal(t, expected, actual) }