Skip to content

Commit

Permalink
Fix Poetry skipped test
Browse files Browse the repository at this point in the history
  • Loading branch information
talarian1 committed Jul 31, 2023
1 parent 61c8a98 commit 856e84c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions poetry_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package main

import (
clientTestUtils "github.com/jfrog/jfrog-client-go/utils/tests"
"os"
"path/filepath"
"strconv"
"testing"

clientTestUtils "github.com/jfrog/jfrog-client-go/utils/tests"

buildinfo "github.com/jfrog/build-info-go/entities"
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
"github.com/jfrog/jfrog-cli/inttestutils"
Expand All @@ -17,11 +18,9 @@ import (
)

func TestPoetryInstall(t *testing.T) {
tests.SkipKnownFailingTest(t)

// Init poetry test.
initPoetryTest(t)

tests.SkipKnownFailingTest(t)
// Populate cli config with 'default' server.
oldHomeDir, newHomeDir := prepareHomeDir(t)
defer func() {
Expand Down
5 changes: 3 additions & 2 deletions utils/tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"errors"
"flag"
"fmt"
"github.com/urfave/cli"
"io"
"math/rand"
"os"
Expand All @@ -18,6 +17,8 @@ import (
"testing"
"time"

"github.com/urfave/cli"

buildinfo "github.com/jfrog/build-info-go/entities"
"github.com/jfrog/jfrog-cli-core/v2/artifactory/commands/generic"
commandutils "github.com/jfrog/jfrog-cli-core/v2/artifactory/commands/utils"
Expand Down Expand Up @@ -793,7 +794,7 @@ func VerifySha256DetailedSummaryFromResult(t *testing.T, result *commandutils.Re
}

func SkipKnownFailingTest(t *testing.T) {
skipDate := time.Date(2023, time.August, 0, 0, 0, 0, 0, time.UTC)
skipDate := time.Date(2023, time.November, 0, 0, 0, 0, 0, time.UTC)
if time.Now().Before(skipDate) {
t.Skip("Skipping a known failing test, will resume testing after ", skipDate.String())
} else {
Expand Down

0 comments on commit 856e84c

Please sign in to comment.