Visitar URL original
feat: Add TLS support for Go Feature Server by shuchu · Pull Request #6229 · feast-dev/feast · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Fix unit test error.
Signed-off-by: Shuchu Han <shuchu.han@gmail.com>
  • Loading branch information
shuchu authored and SHUCHU HAN committed Apr 14, 2026
commit d87d8957aa7cadd0ea867b79735403ad2263bee0
2 changes: 1 addition & 1 deletion go/main_test.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 MockServerStarter missing StartHttpsServer method required by ServerStarter interface

The ServerStarter interface at go/main.go:51 now includes StartHttpsServer, but MockServerStarter in go/main_test.go:29 does not implement this method. The comment on line 28 explicitly states it is a mock of ServerStarter interface for testing, yet it no longer satisfies that interface. Any test that attempts to use MockServerStarter as a ServerStarter will fail to compile.

(Refers to lines 29-41)

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestStartHttpsServerHealthEndpoint(t *testing.T) {
func TestStartHttpsServerTLSFilesRequired(t *testing.T) {
err := StartHttpsServer(&feast.FeatureStore{}, "127.0.0.1", 0, 0, "", "", nil, nil)
require.Error(t, err)
assert.Contains(t, err.Error(), "TLS_CERT_FILE and TLS_KEY_FILE must be set")
assert.Contains(t, err.Error(), "--tls-cert-file and --tls-key-file must be provided")
}

func getFreePort(t *testing.T) int {
Expand Down