Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Change device regex if testing on windows #42

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

taylorsilva
Copy link
Member

@taylorsilva taylorsilva commented Jan 7, 2021

No need to release a new version of baggageclaim, this was only a problem with the test on windows.

The change is on line 46-48

The file got formatted and I decided to keep it in the commit.

Windows network device names are very different from unix systems.

On unix you'll get a list like this:

lo0
gif0
stf0
en0
en1
en2

On Windows you'll get this:

Ethernet 4
Local Area Connection* 2
Local Area Connection* 12
Wi-Fi 5
Bluetooth Network Connection 2
Loopback Pseudo-Interface 1
vEthernet (Default Switch)

You can't even use a simple regex like lo that the test was using
because you could end up matching against the "Local Area..." devices
instead for the test (this may be what you want in the real world
though).

Windows network device names are very different from unix systems.

On unix you'll get a list like this:
```
lo0
en0
...
```

On Windows you'll get this:
```
Ethernet 4
Local Area Connection* 2
Local Area Connection* 12
Wi-Fi 5
Bluetooth Network Connection 2
Loopback Pseudo-Interface 1
vEthernet (Default Switch)
```

You can't even use a simple regex like `lo` that the test was using
because you could end up matching against the "Local Area..." devices
instead for the test (this may be what you want in the real world
though).

Signed-off-by: Taylor Silva <tsilva@pivotal.io>
@taylorsilva taylorsilva merged commit 37cff0d into master Jan 7, 2021
@taylorsilva taylorsilva deleted the fix-p2p-test-for-windows branch January 7, 2021 17:26
@vito vito added the misc label Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants