mirror of
https://github.com/vlang/v.git
synced 2025-09-12 00:46:55 -04:00
x.vweb: bump port numbers for tests, to avoid conflicts with the equivalent veb
test ports
This commit is contained in:
parent
dad8e3c766
commit
d79b85099c
@ -4,7 +4,7 @@ import x.vweb.sse
|
|||||||
import time
|
import time
|
||||||
import net.http
|
import net.http
|
||||||
|
|
||||||
const port = 13008
|
const port = 23008
|
||||||
const localserver = 'http://127.0.0.1:${port}'
|
const localserver = 'http://127.0.0.1:${port}'
|
||||||
const exit_after = time.second * 10
|
const exit_after = time.second * 10
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import time
|
|||||||
import os
|
import os
|
||||||
import net.http
|
import net.http
|
||||||
|
|
||||||
const port = 13006
|
const port = 23006
|
||||||
|
|
||||||
const localserver = 'http://127.0.0.1:${port}'
|
const localserver = 'http://127.0.0.1:${port}'
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import net.http
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
const port = 13012
|
const port = 23012
|
||||||
const localserver = 'http://localhost:${port}'
|
const localserver = 'http://localhost:${port}'
|
||||||
const exit_after = time.second * 10
|
const exit_after = time.second * 10
|
||||||
const allowed_origin = 'https://vlang.io'
|
const allowed_origin = 'https://vlang.io'
|
||||||
|
@ -5,7 +5,7 @@ import net.http
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
|
||||||
const port = 13002
|
const port = 23002
|
||||||
|
|
||||||
const localserver = 'http://127.0.0.1:${port}'
|
const localserver = 'http://127.0.0.1:${port}'
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import net.http
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
const port = 13001
|
const port = 23001
|
||||||
|
|
||||||
const localserver = 'http://127.0.0.1:${port}'
|
const localserver = 'http://127.0.0.1:${port}'
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import time
|
|||||||
import x.vweb
|
import x.vweb
|
||||||
|
|
||||||
const exit_after = time.second * 10
|
const exit_after = time.second * 10
|
||||||
const port = 13009
|
const port = 23009
|
||||||
const localserver = 'localhost:${port}'
|
const localserver = 'localhost:${port}'
|
||||||
const tcp_r_timeout = 2 * time.second
|
const tcp_r_timeout = 2 * time.second
|
||||||
const tcp_w_timeout = 2 * time.second
|
const tcp_w_timeout = 2 * time.second
|
||||||
|
@ -3,7 +3,7 @@ import net.http
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
const port = 13003
|
const port = 23003
|
||||||
|
|
||||||
const localserver = 'http://127.0.0.1:${port}'
|
const localserver = 'http://127.0.0.1:${port}'
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import x.vweb
|
|||||||
import time
|
import time
|
||||||
import db.sqlite
|
import db.sqlite
|
||||||
|
|
||||||
const port = 13004
|
const port = 23004
|
||||||
|
|
||||||
pub struct Context {
|
pub struct Context {
|
||||||
vweb.Context
|
vweb.Context
|
||||||
|
@ -8,7 +8,7 @@ import net.http
|
|||||||
|
|
||||||
const vexe = os.getenv('VEXE')
|
const vexe = os.getenv('VEXE')
|
||||||
const vroot = os.dir(vexe)
|
const vroot = os.dir(vexe)
|
||||||
const port = 48872
|
const port = 23013
|
||||||
const welcome_text = 'Welcome to our simple vweb server'
|
const welcome_text = 'Welcome to our simple vweb server'
|
||||||
|
|
||||||
// Use a known good http client like `curl` (if it exists):
|
// Use a known good http client like `curl` (if it exists):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user