Skip to content

Conversation

@hezhangjian
Copy link
Member

Motivation

Make unit test path compatible to windows, make these tests can run on windows

Modifications

Same to #12329 , change "file://" + tokenFile to "file:///" + tokenFile.toString().replace('\\', '/')

Run in windows can't recognize format like file://C\xxx\yyy\zzz

It should be file:///C and the \ should be /

Documentation

  • no-need-doc

unit test optimization

@hezhangjian
Copy link
Member Author

/pulsarbot run-failure-checks

@hezhangjian
Copy link
Member Author

@BewareMyPower BewareMyPower merged commit 4da4310 into apache:master Oct 19, 2021
@hezhangjian hezhangjian deleted the windows-ut-path branch October 19, 2021 02:34
zeo1995 pushed a commit to zeo1995/pulsar that referenced this pull request Oct 20, 2021
* up/master:
  [pulsar-java-client] Auto-recovery after exception like out of direct memory (apache#12170)
  Allow to config pulsar client allocator out of memory policy (apache#12200)
  [Transaction] Fix bugs, Exception thrower by TB::appendBufferToTxn must be ManagedLedgerException.  (apache#12376)
  Bumped version to 2.10.0-SNAPSHOT (apache#12285)
  [docs][Website] add docs of broker entry metadata (apache#12404)
  [C++] Use weak ref to ClientConnection for timeout task (apache#12409)
  fix windows test path probleam (apache#12398)
  [website][upgrade]feat: home page (apache#12383)
  [docs] [ISSUE 11526] Update the description of `topic` (apache#12375)
  [Docs] Add document label check robot (apache#12371)
  [Admin] Get schema validation enforce add applied. (apache#12349)
  [Doc] add scope explanations (apache#12380)
  Fix java doc for MultipleListenerValidator (apache#12389)
zeo1995 pushed a commit to zeo1995/pulsar that referenced this pull request Oct 20, 2021
….2-chapter-4

* website/branch-2.7.2-chapter-3:
  Update the nesting of forms in the document
  [pulsar-java-client] Auto-recovery after exception like out of direct memory (apache#12170)
  Allow to config pulsar client allocator out of memory policy (apache#12200)
  [Transaction] Fix bugs, Exception thrower by TB::appendBufferToTxn must be ManagedLedgerException.  (apache#12376)
  Bumped version to 2.10.0-SNAPSHOT (apache#12285)
  [docs][Website] add docs of broker entry metadata (apache#12404)
  [C++] Use weak ref to ClientConnection for timeout task (apache#12409)
  fix windows test path probleam (apache#12398)
  [website][upgrade]feat: home page (apache#12383)
  [docs] [ISSUE 11526] Update the description of `topic` (apache#12375)
  [Docs] Add document label check robot (apache#12371)
  [Admin] Get schema validation enforce add applied. (apache#12349)
  [Doc] add scope explanations (apache#12380)
  Fix java doc for MultipleListenerValidator (apache#12389)
codelipenghui pushed a commit that referenced this pull request Oct 21, 2021
### Motivation
Make unit test path compatible to windows, make these tests can run on windows

### Modifications

Same to #12329 , change `"file://" + tokenFile` to `"file:///" + tokenFile.toString().replace('\\', '/')`

Run in windows can't recognize format like `file://C\xxx\yyy\zzz`

It should be `file:///C` and the `\` should be `/`

(cherry picked from commit 4da4310)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Oct 21, 2021
@codelipenghui codelipenghui added this to the 2.10.0 milestone Oct 21, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 20, 2021
codelipenghui pushed a commit that referenced this pull request Dec 20, 2021
### Motivation
Make unit test path compatible to windows, make these tests can run on windows

### Modifications

Same to #12329 , change `"file://" + tokenFile` to `"file:///" + tokenFile.toString().replace('\\', '/')`

Run in windows can't recognize format like `file://C\xxx\yyy\zzz`

It should be `file:///C` and the `\` should be `/`

(cherry picked from commit 4da4310)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test cherry-picked/branch-2.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2 release/2.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants