Fix SSHCHAT_TIMESTAMP env variables (#392)
authorAkshay Shekher <voldyman666@gmail.com>
Sun, 2 May 2021 16:18:31 +0000 (09:18 -0700)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 16:18:31 +0000 (12:18 -0400)
commite1e534344eca3d8fc468d958d0ff3742f7cf5358
treed12f358b5546135a0d1bc76db59aa68c142b0948
parent46eaf037e34416d29c0fb20db55f6265824781f3
Fix SSHCHAT_TIMESTAMP env variables (#392)

* Fixes Env Vars to pass config to ssh-chat.

The env vars were beign parsed and set to the host
before the user was even added to the host and
hence ignored. This change moves the env var parsing
to after initializing the user.

TODO: tests, completeness+reliability

* cleaned up the test

* reduced test flakyness by adding wait instead of being optimistic

Co-authored-by: Akshay <akshay.shekher@gmail.com>
host.go
host_test.go