Fix the integration test

IRCv3 capabilities broke it a bit.

Also change it so that it doesn't destroy existing configuration.
This commit is contained in:
Přemysl Eric Janouch 2023-07-05 00:15:45 +02:00
parent ec33adba35
commit bc8867eb22
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 1 deletions

4
test
View File

@ -1,5 +1,7 @@
#!/usr/bin/expect -f #!/usr/bin/expect -f
# Very basic end-to-end testing for CI # Very basic end-to-end testing for CI
set tempdir [exec mktemp -d]
set ::env(XDG_CONFIG_HOME) $tempdir
# Run the daemon to test against # Run the daemon to test against
system ./xD --write-default-cfg system ./xD --write-default-cfg
@ -27,7 +29,7 @@ expect "Option changed"
send "/disconnect\n" send "/disconnect\n"
expect "]" expect "]"
send "/connect\n" send "/connect\n"
expect "Connection established" expect "Welcome to"
# Try some chatting # Try some chatting
send "/join #test\n" send "/join #test\n"