diff --git a/cmd/anonymizer/app/uiconv/reader.go b/cmd/anonymizer/app/uiconv/reader.go index 2ce0f0e0481..ee26edb5093 100644 --- a/cmd/anonymizer/app/uiconv/reader.go +++ b/cmd/anonymizer/app/uiconv/reader.go @@ -37,12 +37,6 @@ type Reader struct { // NewReader creates a Reader. func NewReader(capturedFile string, logger *zap.Logger) (*Reader, error) { - wd, err := os.Getwd() - if err != nil { - return nil, err - } - logger.Sugar().Infof("Current working dir is %s", wd) - cf, err := os.OpenFile(capturedFile, os.O_RDONLY, os.ModePerm) if err != nil { return nil, fmt.Errorf("cannot open captured file: %w", err) diff --git a/cmd/anonymizer/app/uiconv/reader_test.go b/cmd/anonymizer/app/uiconv/reader_test.go index 897c398ab9a..c9e230c876c 100644 --- a/cmd/anonymizer/app/uiconv/reader_test.go +++ b/cmd/anonymizer/app/uiconv/reader_test.go @@ -37,15 +37,17 @@ func TestReader_TraceSuccess(t *testing.T) { assert.Equal(t, 1, r.spansRead) assert.Equal(t, false, r.eofReached) + r.spansRead = 999 + s2, err := r.NextSpan() require.NoError(t, err) assert.Equal(t, "471418097747d04a", s2.OperationName) - assert.Equal(t, 2, r.spansRead) + assert.Equal(t, 1000, r.spansRead) assert.Equal(t, true, r.eofReached) _, err = r.NextSpan() require.Equal(t, io.EOF, err) - assert.Equal(t, 2, r.spansRead) + assert.Equal(t, 1000, r.spansRead) assert.Equal(t, true, r.eofReached) }