File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ public void tearDown() {
77
77
}
78
78
79
79
@ Test
80
- @ Throws (IOException .class )
81
80
public void test () throws IOException {
82
81
Client client = new Client (ApplicationProvider .getApplicationContext ())
83
82
.setEndpointRealtime ("wss://demo.appwrite.io/v1" )
@@ -89,10 +88,10 @@ public void test() throws IOException {
89
88
Bar bar = new Bar (client );
90
89
General general = new General (client );
91
90
Realtime realtime = new Realtime (client );
92
- String realtimeResponse = "Realtime failed!" ;
91
+ String [] realtimeResponse = { "Realtime failed!" } ;
93
92
94
93
realtime .subscribe ("tests" , TestPayload .class , payload -> {
95
- realtimeResponse = payload .getResponse ();
94
+ realtimeResponse [ 0 ] = payload .getResponse ();
96
95
return null ;
97
96
});
98
97
You can’t perform that action at this time.
0 commit comments