Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Oct 9, 2023
1 parent 0fb9405 commit 123a856
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
12 changes: 7 additions & 5 deletions pkg/testing/define/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestBatch(t *testing.T) {
}
expected := []Batch{
{
Group: "default",
Group: Default,
OS: OS{
Type: Darwin,
Arch: AMD64,
Expand All @@ -102,7 +102,7 @@ func TestBatch(t *testing.T) {
SudoTests: darwinSudoTests,
},
{
Group: "default",
Group: Default,
OS: OS{
Type: Darwin,
Arch: ARM64,
Expand All @@ -111,7 +111,7 @@ func TestBatch(t *testing.T) {
SudoTests: darwinSudoTests,
},
{
Group: "default",
Group: Default,
OS: OS{
Type: Linux,
Arch: AMD64,
Expand All @@ -120,7 +120,7 @@ func TestBatch(t *testing.T) {
SudoTests: linuxSudoTests,
},
{
Group: "default",
Group: Default,
OS: OS{
Type: Linux,
Arch: ARM64,
Expand Down Expand Up @@ -156,7 +156,7 @@ func TestBatch(t *testing.T) {
SudoTests: linuxSudoTests,
},
{
Group: "default",
Group: Default,
OS: OS{
Type: Windows,
Arch: AMD64,
Expand Down Expand Up @@ -226,6 +226,7 @@ var testLinuxLocalTests = []BatchPackageTest{

var testLinuxLocalBatch = []Batch{
{
Group: Default,
OS: OS{
Type: "linux",
Arch: "amd64",
Expand All @@ -238,6 +239,7 @@ var testLinuxLocalBatch = []Batch{
},
},
{
Group: Default,
OS: OS{
Type: "linux",
Arch: "arm64",
Expand Down
22 changes: 11 additions & 11 deletions pkg/testing/define/testdata/sample_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ import (

func TestAnyLocal(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
Local: true,
})
}

func TestAnySudo(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
Sudo: true,
})
}

func TestDarwinLocal(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Darwin,
Expand All @@ -40,7 +40,7 @@ func TestDarwinLocal(t *testing.T) {

func TestDarwinSudo(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Darwin,
Expand All @@ -52,7 +52,7 @@ func TestDarwinSudo(t *testing.T) {

func TestLinuxLocal(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Linux,
Expand All @@ -64,7 +64,7 @@ func TestLinuxLocal(t *testing.T) {

func TestLinuxSudo(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Linux,
Expand All @@ -76,7 +76,7 @@ func TestLinuxSudo(t *testing.T) {

func TestWindowsLocal(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Windows,
Expand All @@ -88,7 +88,7 @@ func TestWindowsLocal(t *testing.T) {

func TestWindowsSudo(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Windows,
Expand All @@ -100,7 +100,7 @@ func TestWindowsSudo(t *testing.T) {

func TestSpecificCombinationOne(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Linux,
Expand All @@ -114,7 +114,7 @@ func TestSpecificCombinationOne(t *testing.T) {

func TestSpecificCombinationTwo(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Linux,
Expand All @@ -128,7 +128,7 @@ func TestSpecificCombinationTwo(t *testing.T) {

func TestSpecificCombinationWithCloud(t *testing.T) {
define.Require(t, define.Requirements{
Group: "default",
Group: define.Default,
OS: []define.OS{
{
Type: define.Linux,
Expand Down

0 comments on commit 123a856

Please sign in to comment.