Skip to content

Commit 30be9e9

Browse files
authored
Fix test new with custom auth provider (streamnative#734)
* test: fix TestNewWithCustomAuthProviderWithTransport Signed-off-by: Zixuan Liu <[email protected]> * test: fix test image Signed-off-by: Zixuan Liu <[email protected]>
1 parent 64d37ff commit 30be9e9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg/pulsar/admin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ func TestNewWithCustomAuthProviderWithTransport(t *testing.T) {
8585
require.NoError(t, err)
8686
require.NotNil(t, admin)
8787

88-
// Expected the transport of customAuthProvider will not be overwritten.
89-
require.Equal(t, defaultTransport, admin.(*pulsarClient).Client.HTTPClient.Transport)
88+
// Expected the customAuthProvider will not be overwritten.
89+
require.Equal(t, customAuthProvider, admin.(*pulsarClient).Client.HTTPClient.Transport)
9090
}
9191

9292
func TestNewWithTlsAllowInsecure(t *testing.T) {

scripts/test-docker/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ RUN curl -sSL https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd6
1010
| tar -C /usr/local -xz
1111
ENV PATH /usr/local/go/bin:$PATH
1212

13+
# install git
14+
RUN apt update
15+
RUN apt install git -y
16+
1317
# copy the code into image
1418
COPY . /pulsarctl
1519

0 commit comments

Comments
 (0)