From 5c8af6eac288ea60cc5a9ac3462208b822461dac Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Wed, 21 Dec 2022 14:04:43 +0000 Subject: [PATCH] Troubleshoot --- .gitignore | 1 + test/canola_tests.erl | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 5e0d4ad..dd7e288 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ ebin priv/canola-port _build +_DS_Store diff --git a/test/canola_tests.erl b/test/canola_tests.erl index c2eca82..4168e77 100644 --- a/test/canola_tests.erl +++ b/test/canola_tests.erl @@ -35,12 +35,14 @@ auth_test_() -> FakeSvc = <<"ThereShouldntBeAServiceWithThisName">>, RealSvc = <<"login">>, FakeUsr = <<"NoSuchUserWeHope">>, - UsrName = case os:getenv("USER") of - false -> - os:getenv("LOGNAME"); - Name -> - Name - end, + UsrName = + case os:getenv("USER") of + false -> + os:getenv("LOGNAME"); + Name -> + Name + end, + io:format(user, "Fetched username of ~p~n" , [UsrName]), P = canola:open_debug(), ?assert(erlang:is_list(UsrName)), RealUsr = erlang:list_to_binary(UsrName), -- 2.45.2