Skip to content

Commit

Permalink
Cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Dec 4, 2023
1 parent 2f25220 commit 8abbfc1
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions xrootd/origin_linux_test.go → xrootd/origin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@ import (
"fmt"
"net/http"
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"testing"
"time"

"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
"os/exec"

"github.com/pelicanplatform/pelican/config"
"github.com/pelicanplatform/pelican/daemon"
"github.com/pelicanplatform/pelican/origin_ui"
"github.com/pelicanplatform/pelican/param"

"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -67,7 +68,16 @@ func originMockup(t *testing.T) context.CancelFunc {
err = CheckXrootdEnv(true, nil)
require.NoError(t, err)

err = SetUpMonitoring()
shutdownCtx, shutdownCancel := context.WithCancel(context.Background())
var wg sync.WaitGroup
wg.Add(1)

defer func() {
shutdownCancel()
wg.Wait()
}()

err = SetUpMonitoring(shutdownCtx, &wg)
require.NoError(t, err)

configPath, err := ConfigXrootd(true)
Expand Down

0 comments on commit 8abbfc1

Please sign in to comment.