Skip to content

Commit

Permalink
fix bug where we tested random versions, now sorted
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Dec 14, 2023
1 parent 901e8a5 commit 06f20d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions integration/scenario.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log"
"net/netip"
"os"
"sort"
"sync"

v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
Expand All @@ -31,6 +32,7 @@ func enabledVersions(vs map[string]bool) []string {
}
}

sort.Sort(sort.Reverse(sort.StringSlice(ret)))
return ret
}

Expand All @@ -45,8 +47,8 @@ var (
"head": true,
"unstable": true,
"1.56": true, // CapVer:
"1.54": true, // CapVer:
"1.52": true, // CapVer:
"1.54": true, // CapVer: 79
"1.52": true, // CapVer: 79
"1.50": true, // CapVer: 74
"1.48": true, // CapVer: 68
"1.46": true, // CapVer: 65
Expand Down Expand Up @@ -355,7 +357,7 @@ func (s *Scenario) CreateTailscaleNodesInUser(
return err
}

log.Printf("testing versions %v", lo.Uniq(versions))
log.Printf("testing versions %v, MustTestVersions %v", lo.Uniq(versions), MustTestVersions)

return nil
}
Expand Down

0 comments on commit 06f20d9

Please sign in to comment.