mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-25 03:50:27 +00:00
feat: versioned migrations (#26)
* enable atlas migrations * use embedded atlas migrations * chores * bad migration example * tidy * fix linter issues * reset migration state * sort slice before testing * move temp write logic to migrations package
This commit is contained in:
parent
343290a55a
commit
8ba954674e
14 changed files with 255 additions and 30 deletions
|
@ -2,6 +2,7 @@ package set
|
|||
|
||||
import (
|
||||
"reflect"
|
||||
"sort"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -247,7 +248,11 @@ func TestSet_Slice(t *testing.T) {
|
|||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if got := tt.s.Slice(); !reflect.DeepEqual(got, tt.want) {
|
||||
got := tt.s.Slice()
|
||||
|
||||
sort.Strings(got)
|
||||
|
||||
if !reflect.DeepEqual(got, tt.want) {
|
||||
t.Errorf("Set.Slice() = %v, want %v", got, tt.want)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue