Skip to content

Commit

Permalink
Merge pull request #43 from CameronRP/add-dbus-service
Browse files Browse the repository at this point in the history
Updated moduel version to 3
  • Loading branch information
CameronRP authored May 18, 2021
2 parents f6318ae + a021262 commit fd0660f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion audiofilelibrary/audiofilelibrary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions cmd/audiobait/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/audiobait/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/audiobait/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/audiobait/player_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/TheCacophonyProject/audiobait
module github.com/TheCacophonyProject/audiobait/v3

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion playlist/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
7 changes: 6 additions & 1 deletion playlist/schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
package playlist

import (
"sort"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -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)
}

0 comments on commit fd0660f

Please sign in to comment.