If you have threads = 1 then the thread it uses sh...
# kotlintest
s
If you have threads = 1 then the thread it uses should be the same thread as the listener
t
ah ah, that is what I was looking for, I knew it was possible but somehow could find how anymore
thread = 1
does the trick
s
So you had threads > 1 before yeah ?
t
actually not true, I am trying
Copy code
init {
		"greetings".config(threads = 1) {
			App().greeting shouldBe "test"
		}
	}
with
3.3.1
and getting
java.lang.IllegalStateException: threadLocal.get() must not be null
s
So it does sound like a bug then
t
I created a repo to reproduce the problem, I have a meeting now but will open a ticket in an hour or so then. Thanks
👍🏻 1
https://github.com/kotlintest/kotlintest/issues/710 let me know what can I do to describe the issue better
s
Thanks for the bug report. I've added a comment