~moody/libdp9ik

libdp9ik/p9any_test.go -rw-r--r-- 458 bytes
4efa26b9 — Jacob Moody Progress made towards authpak_new and authpak_finish 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package libdp9ik_test

import (
	auth "git.sr.ht/~moody/libdp9ik"
	"net"
	"testing"
)

const (
	rcpuPort  = "17019"
	cpuServer = "192.168.1.6"
	authPort  = "567"
)

func TestP9any(t *testing.T) {
	fd, err := net.Dial("tcp", cpuServer+":"+rcpuPort)
	if err != nil {
		t.Fatal(err)
	}
	tfd, err := net.Dial("tcp", cpuServer+":"+authPort)
	if err != nil {
		t.Fatal(err)
	}
	_, err = auth.P9any(fd, tfd, "user", "password")
	if err != nil {
		t.Fatal(err)
	}
}