Skip to content

Commit

Permalink
test: Update test cases to include 'fast-open' and 'udp' in loon test
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Dec 15, 2023
1 parent 746c40f commit 4cb9f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/__tests__/loon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test('getLoonNodes', (t) => {
tfo: true,
},
]),
'trojan = trojan,example.com,443,"password1",tls-name=example.com,skip-cert-verify=true',
'trojan = trojan,example.com,443,"password1",tls-name=example.com,skip-cert-verify=true,fast-open=true,udp=true',
)
t.is(
getLoonNodes([
Expand All @@ -96,7 +96,7 @@ test('getLoonNodes', (t) => {
tls13: true,
},
]),
'trojan = trojan,example.com,443,"password1",tls-name=sni.example.com,skip-cert-verify=true',
'trojan = trojan,example.com,443,"password1",tls-name=sni.example.com,skip-cert-verify=true,fast-open=true,udp=true',
)
t.is(
getLoonNodes([
Expand All @@ -118,7 +118,7 @@ test('getLoonNodes', (t) => {
},
},
]),
'trojan = trojan,example.com,443,"password1",tls-name=sni.example.com,skip-cert-verify=true,transport=ws,path=/ws,host=example.com',
'trojan = trojan,example.com,443,"password1",tls-name=sni.example.com,skip-cert-verify=true,transport=ws,path=/ws,host=example.com,fast-open=true,udp=true',
)
t.is(
getLoonNodes([
Expand Down

0 comments on commit 4cb9f63

Please sign in to comment.