Skip to content

Commit

Permalink
Fixed integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Jul 18, 2023
1 parent 2c58b2c commit 5401eef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ import net.schmizz.sshj.sftp.OpenMode
import net.schmizz.sshj.sftp.RemoteFile
import net.schmizz.sshj.sftp.SFTPClient
import org.junit.ClassRule
import org.testcontainers.junit.jupiter.Container
import org.testcontainers.junit.jupiter.Testcontainers
import spock.lang.Shared
import spock.lang.Specification

import java.nio.charset.StandardCharsets

import static org.codehaus.groovy.runtime.IOGroovyMethods.withCloseable

@Testcontainers
class FileWriteSpec extends Specification {
@Shared
@ClassRule
SshdContainer sshd
@Container
SshdContainer sshd = new SshdContainer()

def "should append to file (GH issue #390)"() {
given:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import spock.lang.Unroll
class SignatureSpec extends Specification {
@Shared
@Container
static SshdContainer sshd
static SshdContainer sshd = new SshdContainer()

@Unroll
def "should correctly connect with #sig Signature"() {
Expand Down

0 comments on commit 5401eef

Please sign in to comment.