Skip to content

Commit 78e171c

Browse files
committed
Change app port
Signed-off-by: joshvanl <[email protected]>
1 parent 5ae5e58 commit 78e171c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

tests/apps/scheduler/app.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
func main() {
33-
const port = 9084
33+
const port = 9095
3434

3535
ctx := signals.Context()
3636

@@ -42,7 +42,7 @@ func main() {
4242
close(regCh)
4343
w.Write([]byte(`{"entities": ["myactortype"]}`))
4444
})
45-
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {})
45+
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {})
4646

4747
go func() {
4848
log.Printf("Waiting for registration call...")
@@ -176,6 +176,9 @@ func register(ctx context.Context) {
176176
func StartServer(ctx context.Context, port int, handler http.Handler) {
177177
// Create a listener
178178
addr := fmt.Sprintf(":%d", port)
179+
180+
log.Println("Starting server on ", addr)
181+
179182
ln, err := net.Listen("tcp", addr)
180183
if err != nil {
181184
log.Fatalf("Failed to create listener: %v", err)
@@ -196,6 +199,7 @@ func StartServer(ctx context.Context, port int, handler http.Handler) {
196199
server.Shutdown(ctx)
197200
}()
198201

202+
log.Printf("Server listening on %s", addr)
199203
err = server.Serve(ln)
200204

201205
if err != http.ErrServerClosed {

tests/e2e/standalone/scheduler_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ func TestSchedulerList(t *testing.T) {
5555
t.Log(err)
5656
}()
5757

58-
time.Sleep(time.Second * 10)
59-
6058
require.EventuallyWithT(t, func(c *assert.CollectT) {
6159
output, err := cmdSchedulerList()
6260
require.NoError(t, err)

tests/e2e/testdata/run-template-files/test-scheduler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 1
22
apps:
33
- appID: test-scheduler
44
appDirPath: ../../../apps/scheduler/
5-
appPort: 9084
5+
appPort: 9095
66
daprGRPCPort: 3510
77
command: ["go", "run", "app.go"]
88
appLogDestination: console

0 commit comments

Comments
 (0)