1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00
goreleaser/internal/pipe/blob
Eng Zer Jun 73e59160de
test: use t.Setenv to set env vars (#4140)
We have been using `t.Setenv` is most of our tests. This PR replaces the
remaining `os.Setenv` with `t.Setenv`.

Reference: https://pkg.go.dev/testing#T.Setenv

```go
func TestFoo(t *testing.T) {
	// before
	os.Setenv(key, "new value")
	defer os.Unsetenv(key)
	
	// after
	t.Setenv(key, "new value")
}
```

---------

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-06-25 09:54:10 -03:00
..
testdata test: fix minio tests 2021-09-22 01:01:32 -03:00
blob_minio_test.go test: use t.Setenv to set env vars (#4140) 2023-06-25 09:54:10 -03:00
blob_test.go test: testctx pkg (#3807) 2023-03-02 00:01:11 -03:00
blob.go feat: blobs.disable (#3884) 2023-03-23 08:59:04 -03:00
doc.go fix: remove deprecated todo 2022-04-11 23:57:17 -03:00
upload.go feat: improve output (#3966) 2023-05-02 09:06:35 -03:00