]> git.giacomolli.uk - onechat/blobdiff - agent_test.go
Log the version when the daemon is ready
[onechat] / agent_test.go
index a9418aee53a8c324aa2266582fdeed0b052ae15f..be74b402186a1a806eeb02e2faa59c446990deb4 100644 (file)
@@ -103,6 +103,7 @@ func TestAgentPromptReadsTheInstructionsEachTime(t *testing.T) {
        require.Equal(t, prompt(agent.config.Name, filepath.Join(dir, agentInstructionsFileName), ""), text)
 
        require.NoError(t, os.WriteFile(filepath.Join(dir, agentInstructionsFileName), []byte("I am Lena.\n"), 0o600))
        require.Equal(t, prompt(agent.config.Name, filepath.Join(dir, agentInstructionsFileName), ""), text)
 
        require.NoError(t, os.WriteFile(filepath.Join(dir, agentInstructionsFileName), []byte("I am Lena.\n"), 0o600))
+
        text, err = agent.Prompt()
        require.NoError(t, err)
        require.Equal(t, prompt(agent.config.Name, filepath.Join(dir, agentInstructionsFileName), "I am Lena."), text)
        text, err = agent.Prompt()
        require.NoError(t, err)
        require.Equal(t, prompt(agent.config.Name, filepath.Join(dir, agentInstructionsFileName), "I am Lena."), text)